home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / plumber_2.swf / scripts / frame_29 / DoAction_2.as next >
Text File  |  2011-01-13  |  535b  |  31 lines

  1. function resetgame()
  2. {
  3.    storage.data.level = 1;
  4. }
  5. function togglemusic()
  6. {
  7.    if(music == 0)
  8.    {
  9.       musicclip.gotoAndStop(1);
  10.       music = 1;
  11.       soundtrack.start(0,99);
  12.    }
  13.    else
  14.    {
  15.       soundtrack.stop();
  16.       music = 0;
  17.       musicclip.gotoAndStop(2);
  18.    }
  19. }
  20. turnsound = new Sound();
  21. turnsound.attachSound("swing");
  22. flow = new Sound();
  23. flow.attachSound("spin");
  24. soundtrack = new Sound();
  25. soundtrack.attachSound("theme");
  26. soundtrack.stop();
  27. if(music == 1)
  28. {
  29.    soundtrack.start(0,99);
  30. }
  31.